package com.jplus.dao;

import com.jplus.entity.Topic;

import java.util.List;

public interface TopicDao {

    List<Topic> getAllTopic();

    Topic getOneTopicById(Integer id);

    Topic getOneTopicByTopicContent(String topicContent);

    int insertOneTopic(Topic topic);

    int deleteOneTopicById(Integer id);

    int updateTopicContentById(Topic topic);

}
